build: Expose autocleanups unconditionally, start using them
authorColin Walters <walters@verbum.org>
Thu, 23 Mar 2017 20:49:58 +0000 (16:49 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 28 Mar 2017 20:19:15 +0000 (20:19 +0000)
commit97961ed2cec379c0bbee3823503bb8fd5f67257b
treef16c28dd6fb3f9f96d9d1aa09cd6019cd9826e65
parentd994aee0a11701068c831b7768c11a00a361f428
build: Expose autocleanups unconditionally, start using them

I'd like to do this in rpm-ostree at least. Originally I was looking at porting
to `G_DECLARE_FINAL_TYPE` but eh, this is easier for now and won't bump our GLib
dependency which might matter for our embedded users.

For now I just did a few replacements in the `remote` command line. A full port
can come as we do other code cleanups.

This will actually break the flatpak build right now, but
that's easy to fix.  And we concluded in e.g.
https://bugs.freedesktop.org/show_bug.cgi?id=95065#c5
it's a bug for downstream projects to do that.

Closes: #756
Approved by: jlebon
src/libostree/ostree-autocleanups.h
src/ostree/ot-remote-builtin-add-cookie.c
src/ostree/ot-remote-builtin-add.c
src/ostree/ot-remote-builtin-delete-cookie.c
src/ostree/ot-remote-builtin-delete.c
src/ostree/ot-remote-builtin-gpg-import.c
src/ostree/ot-remote-builtin-list-cookies.c
src/ostree/ot-remote-builtin-list.c
src/ostree/ot-remote-builtin-refs.c
src/ostree/ot-remote-builtin-show-url.c
src/ostree/ot-remote-builtin-summary.c